#include "modes.h"
#include "sm4.h"

void sm4_ecb_encrypt(const unsigned char* in, unsigned char* out,
                     const sm4_key_t* key, int enc)
{
    if (enc)
        sm4_encrypt(in, out, key);
    else
        sm4_decrypt(in, out, key);
}
